<?php
/**
 * Created by PhpStorm.
 * User: jack Wang
 * Date: 2021/11/13
 * Time: 16:42
 */

class League_service extends MY_Service
{
    public function __construct()
    {
        parent::__construct();
    }

    //获得奖励的全部奖品
    public function getAward()
    {
        $baseAward = [
            5 => ['type' => 1, 'propId' => 7, 'num' => ''], 10 => ['type' => 2, 'propId' => '', 'mum' => 100],
            15 => ['type' => 1, 'propId' => 8, 'num' => ''], 20 => ['type' => 1, 'propId' => 9, 'num' => ''],
            25 => ['type' => 1, 'propId' => 10, 'num' => ''], 30 => ['type' => 1, 'propId' => 2, 'num' => ''],
            35 => ['type' => 1, 'propId' => 9, 'num' => ''], 40 => ['type' => 2, 'propId' => '', 'num' => 100],
            45 => ['type' => 1, 'propId' => 2, 'num' => ''], 50 => ['type' => 1, 'propId' => 9, 'num' => ''],
            55 => ['type' => 2, 'propId' => 2, 'num' => 100], 60 => ['type' => 1, 'propId' => 11, 'num' => ''],
        ];
        $award = [
            1 => ['type' => 1, 'propId' => 12, 'num' => ''], 2 => ['type' => 2, 'propId' => '', 'mum' => 100],
            3 => ['type' => 3, 'propId' => '', 'num' => 80], 4 => ['type' => 1, 'propId' => 9, 'num' => ''],
            5 => ['type' => 1, 'propId' => 11, 'num' => ''], 6 => ['type' => 1, 'propId' => 13, 'num' => ''],
            7 => ['type' => 2, 'propId' => '', 'num' => 100], 8 => ['type' => 3, 'propId' => '', 'num' => 80],
            9 => ['type' => 1, 'propId' => 9, 'num' => ''], 10 => ['type' => 1, 'propId' => 14, 'num' => 5],
            11 => ['type' => 2, 'propId' => '', 'num' => 100], 12 => ['type' => 3, 'propId' => '', 'mum' => 80],
            13 => ['type' => 1, 'propId' => 9, 'num' => ''], 14 => ['type' => 1, 'propId' => 7, 'num' => ''],
            15 => ['type' => 1, 'propId' => 15, 'num' => ''], 16 => ['type' => 1, 'propId' => 13, 'num' => ''],
            17 => ['type' => 2, 'propId' => '', 'num' => 100], 18 => ['type' => 3, 'propId' => '', 'num' => 80],
            19 => ['type' => 1, 'propId' => 9, 'num' => ''], 20 => ['type' => 1, 'propId' => 11, 'num' => ''],
            21 => ['type' => 2, 'propId' => '', 'num' => 100], 22 => ['type' => 3, 'propId' => '', 'mum' => 80],
            23 => ['type' => 1, 'propId' => 9, 'num' => ''], 24 => ['type' => 1, 'propId' => 15, 'num' => ''],
            25 => ['type' => 1, 'propId' => 14, 'num' => 5], 26 => ['type' => 2, 'propId' => '', 'num' => 100],
            27 => ['type' => 3, 'propId' => '', 'num' => 80], 28 => ['type' => 1, 'propId' => 9, 'num' => ''],
            29 => ['type' => 1, 'propId' => 7, 'num' => ''], 30 => ['type' => 1, 'propId' => 15, 'num' => ''],
            31 => ['type' => 1, 'propId' => 13, 'num' => ''], 32 => ['type' => 2, 'propId' => '', 'mum' => 100],
            33 => ['type' => 3, 'propId' => '', 'num' => 80], 34 => ['type' => 1, 'propId' => 9, 'num' => ''],
            35 => ['type' => 1, 'propId' => 11, 'num' => ''], 36 => ['type' => 2, 'propId' => '', 'num' => 100],
            37 => ['type' => 3, 'propId' => '', 'num' => 80], 38 => ['type' => 1, 'propId' => 9, 'num' => ''],
            39 => ['type' => 1, 'propId' => 15, 'num' => ''], 40 => ['type' => 1, 'propId' => 14, 'num' => 5],
            41 => ['type' => 2, 'propId' => '', 'num' => 100], 42 => ['type' => 3, 'propId' => '', 'mum' => 80],
            43 => ['type' => 1, 'propId' => 9, 'num' => ''], 44 => ['type' => 1, 'propId' => 7, 'num' => ''],
            45 => ['type' => 1, 'propId' => 15, 'num' => ''], 46 => ['type' => 1, 'propId' => 13, 'num' => ''],
            47 => ['type' => 2, 'propId' => '', 'num' => 100], 48 => ['type' => 3, 'propId' => '', 'num' => 80],
            49 => ['type' => 1, 'propId' => 9, 'num' => ''], 50 => ['type' => 1, 'propId' => 16, 'num' => 2],
            51 => ['type' => 2, 'propId' => '', 'num' => 100], 52 => ['type' => 3, 'propId' => '', 'mum' => 80],
            53 => ['type' => 1, 'propId' => 9, 'num' => ''], 54 => ['type' => 1, 'propId' => 15, 'num' => ''],
            55 => ['type' => 1, 'propId' => 16, 'num' => 2], 56 => ['type' => 2, 'propId' => '', 'num' => 100],
            57 => ['type' => 3, 'propId' => '', 'num' => 80], 58 => ['type' => 1, 'propId' => 9, 'num' => ''],
            59 => ['type' => 1, 'propId' => 7, 'num' => ''], 60 => ['type' => 1, 'propId' => 15, 'num' => ''],
            61 => ['type' => 1, 'propId' => 13, 'num' => ''], 62 => ['type' => 2, 'propId' => '', 'mum' => 100],
            63 => ['type' => 3, 'propId' => '', 'num' => 80], 64 => ['type' => 1, 'propId' => 9, 'num' => ''],
            65 => ['type' => 1, 'propId' => 16, 'num' => 2], 66 => ['type' => 1, 'propId' => 14, 'num' => 5],
            67 => ['type' => 2, 'propId' => '', 'num' => 100], 68 => ['type' => 3, 'propId' => '', 'num' => 80],
            69 => ['type' => 1, 'propId' => 9, 'num' => ''], 70 => ['type' => 2, 'propId' => '', 'num' => 100],
            71 => ['type' => 1, 'propId' => 14, 'num' => 5], 72 => ['type' => 2, 'propId' => '', 'mum' => 100],
            73 => ['type' => 3, 'propId' => '', 'num' => 80], 74 => ['type' => 1, 'propId' => 9, 'num' => ''],
            75 => ['type' => 1, 'propId' => 17, 'num' => ''],
        ];
        return [
            'baseAward' => $baseAward,
            'award' => $award,
        ];
    }

    //活动首页
    public function LeagueIndex()
    {
        $Award = $this->getAward();
    }

    //任务列表
    public function taskList()
    {
        return [
            [
                'flag' => 1,            //任务唯一标识
                'type' => 'watch',   //任务类型:(浏览文章)
                'award' => 3,           //奖励的活动经验
                'max' => 5,             //每日上限
            ],
            [
                'flag' => 2,            //任务唯一标识
                'type' => 'publish',   //任务类型:(发布文章)
                'award' => 5,           //奖励的活动经验
                'max' => 2,             //每日上限
            ],
            [
                'flag' => 3,            //任务唯一标识
                'type' => 'review',   //任务类型:(评论文章)
                'award' => 2,           //奖励的活动经验
                'max' => 2,             //每日上限
            ],
            [
                'flag' => 4,            //任务唯一标识
                'type' => 'fabulous',   //任务类型:(点赞文章)
                'award' => 2,           //奖励的活动经验
                'max' => 2,             //每日上限
            ],
            [
                'flag' => 5,            //任务唯一标识
                'type' => 'sign',           //任务类型:(每日签到)
                'award' => 4,           //奖励的活动经验
                'max' => 1,             //每日上限
            ],
        ];
    }
}